Skip to content

Conversation

@gasbytes
Copy link
Contributor

@gasbytes gasbytes commented Feb 6, 2025

  • Switch from Vec to fixed-size Box<[u8]> arrays in rustls-wolfcrypt-provider key exchange operations.
  • Adds detailed error categories and unit tests for error handling.

@gasbytes gasbytes marked this pull request as ready for review February 7, 2025 10:32
@dgarske
Copy link
Contributor

dgarske commented Feb 10, 2025

@gasbytes please resolve merge conflict.

        - refactor(build.rs): unravel nested if/else in build.rs
          Split build script into modular functions with proper error handling.
          Add documentation and extract constants for better maintainability.
        - refactor(lib): minimize unsafe blocks in RSA encryption test
…orized errors

Add detailed error categories for wolfSSL error codes while maintaining
the original API. Implement Display trait and add internal error checking
mechanism. Keep no_std compatibility and add comprehensive tests.
Switch from Vec<u8> to Box<[u8]> and fixed-size arrays in key exchange
implementations since crypto keys have known sizes. This reduces heap
allocations and improves memory efficiency with no functional changes.
Improves safety by loggin cleanup failures instead of panicking during
resource drops.
This prevents crashed while preversing error information for debugging.
@gasbytes gasbytes removed their assignment Feb 11, 2025
@gasbytes gasbytes requested a review from dgarske February 11, 2025 10:50
@dgarske dgarske merged commit b1072da into wolfSSL:main Feb 11, 2025
2 checks passed
@gasbytes gasbytes deleted the rust-improvements branch February 11, 2025 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants